package com.aoxin.mapper.opm;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.aoxin.model.opm.SlfClassroomSyllabusDate;

public interface SlfClassroomSyllabusDateMapper {

	/**
	 * (批量)删除教室上课时间信息
	 * 
	 * @param classroomSyllabusDateIds
	 * @return
	 */
	Integer deleteClassroomSyllabusDate(List<Integer> classroomSyllabusDateIds);

	/**
	 * 新增教室上课时间关联信息
	 * 
	 * @param classroomId
	 *            ,syllabusDateId
	 * @return
	 */
	Integer insertClassroomSyllabusDate(@Param("classroomId") Integer classroomId, @Param("syllabusDateId") Integer syllabusDateId);

	/**
	 * （条件）查询教室上课时间关联信息
	 * 
	 * @param slfClassroomSyllabusDate
	 * @return
	 */
	List<SlfClassroomSyllabusDate> getSlfClassroomSyllabusDate(SlfClassroomSyllabusDate slfClassroomSyllabusDate);

	/**
	 * 初始化关联关系
	 * 
	 * @param classroomId
	 * @param syllabusDateIds
	 * @return
	 */
	Integer deleteByClassroomIdAndSyllabusDateId(@Param("classroomId") Integer classroomId, @Param("syllabusDateIds") List<Integer> syllabusDateIds);

	/**
	 * 根据教室删除教室时间关联
	 * 
	 * @param classroomId
	 *            教室ID
	 */
	void deleteByClassroomId(@Param("classroomId") Integer classroomId);
}
